package com.etonedu.meals.bean;

import android.os.Parcel;
import android.os.Parcelable;


public class ResultToken implements Parcelable {
    /**
     * expiresSec : 86400
     * refreshToken : 63d8a119-cd28-42c2-b34c-7dd383fdc15f
     * token : 0204e870-44e3-4a15-9a31-587b6ffac64c
     */

    private int expiresSec;
    private String refreshToken;
    private String token;

    public int getExpiresSec() {
        return expiresSec;
    }

    public void setExpiresSec(int expiresSec) {
        this.expiresSec = expiresSec;
    }

    public String getRefreshToken() {
        return refreshToken;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.expiresSec);
        dest.writeString(this.refreshToken);
        dest.writeString(this.token);
    }

    public ResultToken() {
    }

    protected ResultToken(Parcel in) {
        this.expiresSec = in.readInt();
        this.refreshToken = in.readString();
        this.token = in.readString();
    }

    public static final Creator<ResultToken> CREATOR = new Creator<ResultToken>() {
        @Override
        public ResultToken createFromParcel(Parcel source) {
            return new ResultToken(source);
        }

        @Override
        public ResultToken[] newArray(int size) {
            return new ResultToken[size];
        }
    };
}
